﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace Rss.Infrastructure
{

    /// <summary>
    /// 
    /// </summary>
    public interface IBlogParser
    {
        /// <summary>
        /// 获取博客列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<Rss.Domain.Blog> TryCatchBlogs(Rss.Domain.RssInfo rss);

        /// <summary>
        /// 异步：获取博客列表
        /// </summary>
        /// <param name="rss"></param>
        /// <returns></returns>
        Task<IEnumerable<Rss.Domain.Blog>> TryCatchBlogsAsync(Rss.Domain.RssInfo rss);

    }
}
